package com.baidu.foody.util

import com.baidu.foody.models.FoodRecipe

/**
 * 网络请求结果
 * 限制子类的个数
 * 外部无法继承
 */
sealed class NetworkResult{
    data object Loading : NetworkResult()
    class Success(val data: FoodRecipe):NetworkResult()
    class Failure(val message: String):NetworkResult()
}

